import axios from "./http";

function getSessionList(params: any) {
    return axios.post('/movieSession/list', params)
}

/**
 * 查询影厅一段时间内场次
 * @param params startTime endTime hallId
 */
function getSessionListByHallTime(params:any){
    return axios.post('/movieSession/hallTime/list',params)
}

function createMovieSession(params:any){
    return axios.post('movieSession/create',params)
}

export default {
    getSessionList,
    getSessionListByHallTime,
    createMovieSession
}